{
  "title": "Keyamp",
  "rules": [
    {
      "description": "spacebar",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "spacebar",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "spacebar"
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "spacebar",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "spacebar"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "spacebar",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        },
        {
          "type": "basic",
          "from": {
            "key_code": "spacebar",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "spacebar pressed",
              "value": 1
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to": [
            {
              "key_code": "spacebar"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "spacebar",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "spacebar"
            },
            {
              "set_variable": {
                "name": "spacebar pressed",
                "value": 1
              }
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ],
              "repeat": false,
              "halt": true
            }
          ],
          "to_delayed_action": {
            "to_if_invoked": [
              {
                "set_variable": {
                  "name": "spacebar pressed",
                  "value": 0
                }
              }
            ],
            "to_if_canceled": [
              {
                "set_variable": {
                  "name": "spacebar pressed",
                  "value": 0
                }
              }
            ]
          }
        }
      ]
    },
    {
      "description": "left_command",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Books"
              ]
            }
          ],
          "to": [
            {
              "key_code": "left_arrow"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "delete_or_backspace"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "delete_or_backspace",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        },
        {
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to": [
            {
              "key_code": "delete_or_backspace"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to": [
            {
              "key_code": "delete_or_backspace"
            }
          ],
          "conditions": [
            {
              "type": "variable_if",
              "name": "left_command pressed",
              "value": 1
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to": [
            {
              "set_variable": {
                "name": "left_command pressed",
                "value": 1
              }
            },
            {
              "key_code": "left_command",
              "lazy": true
            }
          ],
          "to_if_alone": [
            {
              "key_code": "delete_or_backspace"
            }
          ],
          "to_delayed_action": {
            "to_if_invoked": [
              {
                "set_variable": {
                  "name": "left_command pressed",
                  "value": 0
                }
              }
            ],
            "to_if_canceled": [
              {
                "set_variable": {
                  "name": "left_command pressed",
                  "value": 0
                }
              }
            ]
          }
        }
      ]
    },
    {
      "description": "q",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "q",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "q"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "q",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "q",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "q"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "q",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Books"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "q",
              "modifiers": [
                "left_command"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "w",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "w",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "w"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "a",
              "modifiers": [
                "control"
              ]
            },
            {
              "key_code": "a",
              "modifiers": [
                "control"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "w",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "w"
            }
          ]
        }
      ]
    },
    {
      "description": "e",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "e",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to": [
            {
              "key_code": "i"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "e",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "e"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "e",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "e",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "e"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "e",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "r",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "r",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "r"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "r",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "r",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "r"
            }
          ]
        }
      ]
    },
    {
      "description": "t",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "t",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "t"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "t",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "t",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "t"
            }
          ]
        }
      ]
    },
    {
      "description": "y",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "y",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "y"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "y",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "y",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "y"
            }
          ]
        }
      ]
    },
    {
      "description": "u",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "u",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "u"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "u",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "u",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "u"
            }
          ]
        }
      ]
    },
    {
      "description": "i",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "i",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "i"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "i",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        },
        {
          "type": "basic",
          "from": {
            "key_code": "i",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "i"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "i",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        }
      ]
    },
    {
      "description": "o",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "o",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "o"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "o",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "o",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "o"
            }
          ]
        }
      ]
    },
    {
      "description": "p",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "p",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "p"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "p",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "p",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "p"
            }
          ]
        }
      ]
    },
    {
      "description": "open_bracket",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "open_bracket",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "open_bracket"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "open_bracket",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "open_bracket",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "open_bracket"
            }
          ]
        }
      ]
    },
    {
      "description": "close_bracket",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "close_bracket",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "close_bracket"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "close_bracket",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "close_bracket",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "close_bracket"
            }
          ]
        }
      ]
    },
    {
      "description": "a",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "a",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "a"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "a",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "a",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "a"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "a",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "s",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "s",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to": [
            {
              "key_code": "j"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "s",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "s"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "s",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "s",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "s"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "s",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "d",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "d",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to": [
            {
              "key_code": "k"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "d",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "d"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "d",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "d",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "d"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "d",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to": [
            {
              "key_code": "l"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "f"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "f",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "f"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "f",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "g",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "g",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "g"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "g",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "g",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "g"
            }
          ]
        }
      ]
    },
    {
      "description": "h",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "h",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "h"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "h",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "h",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "h"
            }
          ]
        }
      ]
    },
    {
      "description": "j",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "j",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "j"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "j",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        },
        {
          "type": "basic",
          "from": {
            "key_code": "j",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "j"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "j",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        }
      ]
    },
    {
      "description": "k",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "k"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "k",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        },
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "k"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "k",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        }
      ]
    },
    {
      "description": "l",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "l",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "l"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "l",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        },
        {
          "type": "basic",
          "from": {
            "key_code": "l",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "l"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "l",
              "repeat": true,
              "halt": true
            }
          ],
          "parameters": {
            "basic.to_if_held_down_threshold_milliseconds": 120
          }
        }
      ]
    },
    {
      "description": ";",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "semicolon",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "semicolon"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "semicolon",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "semicolon",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "semicolon"
            }
          ]
        }
      ]
    },
    {
      "description": "'",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "quote",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "quote"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "quote",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "quote",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "quote"
            }
          ]
        }
      ]
    },
    {
      "description": "z",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "z",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "z"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "r",
              "modifiers": [
                "left_control"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "z",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "z"
            }
          ]
        }
      ]
    },
    {
      "description": "x",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "x",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "x"
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "/Applications/emacsclient --no-wait --eval '(save-buffers-kill-terminal)' && sleep 0.05 && open -a 'Emacs'",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "x",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "x"
            }
          ]
        }
      ]
    },
    {
      "description": "c",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "c",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "c"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "c",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "c",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "c"
            }
          ]
        }
      ]
    },
    {
      "description": "v",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "v",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "v"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "v",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "v",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "v"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "v",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "b",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "b",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "b"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "b",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "b",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "b"
            }
          ]
        }
      ]
    },
    {
      "description": "n",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "n",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "n"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "n",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "n",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "n"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "n",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "m",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "m",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "m"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "m",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "m",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "m"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "m",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": ",",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "comma",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "comma"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "comma",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "comma",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "comma"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "comma",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": ".",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "period",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "period"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "period",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "period",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "period"
            }
          ]
        }
      ]
    },
    {
      "description": "/",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "slash",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "slash"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "slash",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "slash",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "equal_sign"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "equal_sign",
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "slash",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to": [
            {
              "key_code": "slash"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "slash",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "slash"
            }
          ]
        }
      ]
    },
    {
      "description": "`",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "grave_accent_and_tilde",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "grave_accent_and_tilde"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "grave_accent_and_tilde",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "1",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "1"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "1",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "1"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "1",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "1"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "1",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "1"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "1",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "7"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "7",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "1"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "1",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "2",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "2"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "2",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "2"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "2",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "2"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "2",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "2"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "2",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "5"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "5",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "2"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "2",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "3",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "3"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "3",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "3"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "3",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "3"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "3",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "3"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "3",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "1"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "1",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "3"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "3",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "4",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "4"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "4",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "4"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "4",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "4"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "4",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "4"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "4",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "3"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "3",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "4"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "4",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "5",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "5"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "5",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "5"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "5",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "5"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "5",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "5"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "5",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "9"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "9",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "5"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "5",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "6",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "6"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "6",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "6"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "6",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "6"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "6",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "6"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "6",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "8"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "8",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "6"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "6",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "7",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "7"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "7",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "7"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "7",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "7"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "7",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "7"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "7",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "2"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "2",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "7"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "7",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "8",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "8"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "8",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "8"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "8",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "8"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "8",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "8"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "8",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "0"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "0",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "8"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "8",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "9",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "9"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "9",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "9"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "9",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "9"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "9",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "9"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "9",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "4"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "4",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "9"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "9",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "0",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "0"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "0",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "0"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "0",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "0"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "0",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "0"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "0",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "6"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "6",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            },
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "0"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "0",
              "modifiers": [
                "left_shift"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "hyphen",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "hyphen",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "hyphen"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "hyphen",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "equal_sign",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "equal_sign",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "equal_sign"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "equal_sign",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "backslash",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "backslash",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "backslash"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "b",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "backslash",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "return_or_enter",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "return_or_enter",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to_if_alone": [
            {
              "software_function": {
                "set_mouse_cursor_position": {
                  "x": "50%",
                  "y": "50%",
                  "screen": 0
                }
              }
            },
            {
              "software_function": {
                "cg_event_double_click": {
                  "button": 0
                }
              }
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "h",
              "modifiers": [
                "command",
                "option"
              ]
            },
            {
              "key_code": "m",
              "modifiers": [
                "command"
              ]
            },
            {
              "shell_command": "open -a Emacs.app",
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "return_or_enter",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "return_or_enter"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "m",
              "modifiers": [
                "control"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "return_or_enter",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "return_or_enter"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "k",
              "modifiers": [
                "left_control"
              ],
              "repeat": false,
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "return_or_enter",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "return_or_enter"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "h",
              "modifiers": [
                "command",
                "option"
              ]
            },
            {
              "key_code": "m",
              "modifiers": [
                "command"
              ]
            },
            {
              "shell_command": "open -a Emacs.app",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "tab",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "tab",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "tab"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "equal_sign",
              "modifiers": [
                "left_shift",
                "left_control"
              ]
            },
            {
              "key_code": "tab",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "escape",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "escape",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_if_alone": [
            {
              "software_function": {
                "set_mouse_cursor_position": {
                  "x": "50%",
                  "y": "50%",
                  "screen": 0
                }
              }
            },
            {
              "software_function": {
                "cg_event_double_click": {
                  "button": 0
                }
              }
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "open -a Emacs.app",
              "repeat": false,
              "halt": true
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "escape",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "key_code": "escape"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "j",
              "modifiers": [
                "control"
              ],
              "repeat": false,
              "halt": true
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "escape",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "key_code": "escape"
            },
            {
              "set_variable": {
                "name": "left_command pressed",
                "value": 0
              }
            },
            {
              "set_variable": {
                "name": "spacebar pressed",
                "value": 0
              }
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "quote",
              "modifiers": [
                "left_control"
              ],
              "repeat": false,
              "halt": true
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 1
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "escape",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "key_code": "escape"
            },
            {
              "set_variable": {
                "name": "left_command pressed",
                "value": 0
              }
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "open -a Emacs.app",
              "repeat": false,
              "halt": true
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ]
        }
      ]
    },
    {
      "description": "left_control",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "left_control",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Termius"
              ]
            }
          ],
          "to": [
            {
              "key_code": "left_control",
              "lazy": true
            }
          ],
          "to_if_alone": [
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "left_control",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_control",
              "lazy": true
            }
          ],
          "to_if_alone": [
            {
              "shell_command": "open -a Termius"
            }
          ]
        }
      ]
    },
    {
      "description": "left_option",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "left_option",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_option",
              "lazy": true
            }
          ],
          "to_if_alone": [
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/System Settings"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "left_option",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_option",
              "lazy": true
            }
          ],
          "to_if_alone": [
            {
              "shell_command": "open -a 'System Settings'"
            }
          ]
        }
      ]
    },
    {
      "description": "f1",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f1"
          },
          "to": [
            {
              "key_code": "display_brightness_decrement"
            }
          ]
        }
      ]
    },
    {
      "description": "f2",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f2"
          },
          "to": [
            {
              "key_code": "display_brightness_increment"
            }
          ]
        }
      ]
    },
    {
      "description": "f3",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/GuruPro"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f3",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "open -a GuruPro",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f4",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Weather"
              ]
            }
          ],
          "to": [
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f4",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "open -a Weather"
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "open -a Weather",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f5",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Preview"
              ]
            }
          ],
          "to": [
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f5",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "open -a Preview",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f6",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to": [
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f6",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "open -a VLC",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f7",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f7",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "echo x0o1@ya.ru|pbcopy",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f8",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f8",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "/Applications/emacsclient --no-wait --eval '(emms-pause)'"
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "open -a SwitchBetweenAudioDevices.app",
              "repeat": false,
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f9",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f9",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "/Applications/emacsclient --no-wait --eval '(emms-seek-forward-or-next)'"
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "/Applications/emacsclient --no-wait --eval '(emms-seek-backward-or-previous)'",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f10",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f10",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Karabiner-Elements"
              ]
            }
          ],
          "to": [
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f10",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to_after_key_up": [
            {
              "shell_command": "defaults write -g InitialKeyRepeat -int 10 && defaults write -g KeyRepeat -int 2 && echo \"normal min 15 (225 ms) and 2 (30 ms)\""
            },
            {
              "shell_command": "open -a Karabiner-Elements"
            }
          ],
          "to_if_held_down": [
            {
              "shell_command": "open -a Karabiner-EventViewer",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "f13",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f13",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Brave Browser"
              ]
            }
          ],
          "to": [
            {
              "select_input_source": {
                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
              },
              "repeat": false
            },
            {
              "shell_command": "open -a 'Brave Browser'"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f13",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Brave Browser"
              ]
            }
          ],
          "to": [
            {
              "select_input_source": {
                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
              },
              "repeat": false
            },
            {
              "key_code": "h",
              "modifiers": [
                "command"
              ]
            },
            {
              "shell_command": "open -a 'Emacs'"
            }
          ]
        }
      ]
    },
    {
      "description": "f14",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f14",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.RussianWin"
                }
              ],
              "type": "input_source_if"
            }
          ],
          "to": [
            {
              "select_input_source": {
                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
              },
              "repeat": false
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f14",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "com.apple.keylayout.ABC"
                }
              ],
              "type": "input_source_if"
            }
          ],
          "to": [
            {
              "select_input_source": {
                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
              },
              "repeat": false
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "f14",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "input_sources": [
                {
                  "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                }
              ],
              "type": "input_source_if"
            }
          ],
          "to": [
            {
              "select_input_source": {
                "input_source_id": "com.apple.keylayout.RussianWin"
              },
              "repeat": false
            }
          ]
        }
      ]
    },
    {
      "description": "f15",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f15",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "select_input_source": {
                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
              }
            },
            {
              "key_code": "tab",
              "modifiers": [
                "command"
              ],
              "halt": true,
              "repeat": false
            }
          ]
        }
      ]
    },
    {
      "description": "arrows",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "j",
            "modifiers": {
              "mandatory": [
                "command"
              ],
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_arrow"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "mandatory": [
                "command"
              ],
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "down_arrow"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "i",
            "modifiers": {
              "mandatory": [
                "command"
              ],
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "up_arrow"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "l",
            "modifiers": {
              "mandatory": [
                "command"
              ],
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_arrow"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "i",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "up_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "multitouch_extension_finger_count_total",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "j",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "multitouch_extension_finger_count_total",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "k",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "down_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "multitouch_extension_finger_count_total",
              "value": 0
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "l",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_arrow"
            }
          ],
          "conditions": [
            {
              "type": "variable_unless",
              "name": "multitouch_extension_finger_count_total",
              "value": 0
            }
          ]
        }
      ]
    },
    {
      "description": "page_up",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "page_up",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "page_up"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "home",
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "page_up",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "page_up"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "home",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "page_down",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "page_down",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "file_paths": [
                "/Emacs"
              ]
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "page_down"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "end",
              "halt": true
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "page_down",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/Emacs"
              ]
            },
            {
              "type": "variable_if",
              "name": "insert mode activated",
              "value": 0
            }
          ],
          "to_after_key_up": [
            {
              "key_code": "page_down"
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "end",
              "halt": true
            }
          ]
        }
      ]
    },
    {
      "description": "pause",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "pause",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "software_function": {
                "iokit_power_management_sleep_system": {
                  "delay_milliseconds": 500
                }
              }
            }
          ]
        }
      ]
    },
    {
      "description": "left_arrow",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "left_arrow",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to": [
            {
              "key_code": "j"
            }
          ]
        }
      ]
    },
    {
      "description": "right_arrow",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "right_arrow",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "conditions": [
            {
              "type": "frontmost_application_if",
              "file_paths": [
                "/VLC"
              ]
            }
          ],
          "to": [
            {
              "key_code": "l"
            }
          ]
        }
      ]
    }
  ]
}

